﻿using System.Collections.Generic;

namespace SeriesManager.Model
{
    public class SeriesComparer : IComparer<SeriesModel>
    {
        public int Compare(SeriesModel x, SeriesModel y)
        {
            if (x.Name != null && y.Name != null)
                return x.Name.CompareTo(y.Name);

            return 1;
        }
    }
}
